hvm svm: Fix for BSOD when "migrating" from Intel to AMD.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 14 Jun 2007 14:54:57 +0000 (15:54 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 14 Jun 2007 14:54:57 +0000 (15:54 +0100)
commitd25c0b84c6bc60c0573671c6923661f256b33307
tree47fcd9a590d1020b4cee9485ff5b859a10f2b04f
parent9a1d2c1a459337f4b6e2b2d0d734f83ed5e8f967
hvm svm: Fix for BSOD when "migrating" from Intel to AMD.

The Intel processor driver for Windows (XP and later at least) reads
an MSR that AMD doesn't have. This causes GP-fault in kernel mode,
which causes blue-screen-of-death on Windows. This prevents a
disk-image that was installed on Intel from starting on an AMD
processor.

This patch "fixes" the problem by allowing reads from the msr,
returning all zero's (which is a valid, if not particulary
meaningful, value for this register).

Signed-off-by: Mats Petersson <mats.petersson@amd.com>
xen/arch/x86/hvm/svm/svm.c
xen/include/asm-x86/msr.h